import java.util.LinkedList;

public class Test {
    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();

        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(1);
        myLinkedList.addLast(2);
        myLinkedList.addLast(3);
        myLinkedList.addLast(4);
        myLinkedList.addLast(4);
        //myLinkedList.addIndex(2,13);
        //myLinkedList.remove(4);
        myLinkedList.display();
        //myLinkedList.removeAllKey(4);
        myLinkedList.clear();
        myLinkedList.display();
    }
}
